package
{
	import fl.controls.Button;
	
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	
	import org.aswing.AsWingManager;
	import org.aswing.VectorListModel;
	
	import vno.ky.XML.SndRes;
	import vno.ky.XML.UiRes;
	import vno.ky.aswing.MyList;
	import vno.ky.mapMaker.Buttons;
	import vno.ky.mapMaker.Grip;
	import vno.sci.mapEditor.*;

	[SWF(frameRate="30")]
	public class KyMain extends Sprite
	{
		public function KyMain()
		{
			//====Please reserve the two lines below====
			stage.scaleMode = StageScaleMode.NO_SCALE;
			stage.align = StageAlign.TOP_LEFT;
		/*	//=========================================
			stage.scaleMode = StageScaleMode.NO_SCALE;
			stage.align=StageAlign.TOP_LEFT;
			var grip:Grip=new Grip();
			addChild(grip);
			grip.drawGrips();
			var button:Buttons=new Buttons();	//点击output按钮后，button.output即为所需二维数组
			addChild(button);						//先addChild才能使用舞台属性
			stage.scaleMode=StageScaleMode.EXACT_FIT;
			button.startMaker();
		*/
		//	var a:MapEditor =new MapEditor(stage.stage);			//地图编辑器专用行
			//AsWingManager.initAsStandard(this);
			var model1:VectorListModel= new VectorListModel();
			var model2:VectorListModel=new VectorListModel();
			var model3:VectorListModel=new VectorListModel();
			for(var i:int=0; i<100; i++)
			{
				model1.append("cat" + i);
			}
			model2 = new VectorListModel();
			for(i=0; i<100; i++)
			{
				model2.append("pig" + i);
			}
			for(i=0; i<100; i++)
			{
				model3.append("dog" + i);
			}
			var resourse:Object={cat:model1,pig:model2,dog:model3};
			var a:MyList=new MyList(resourse);
			addChild(a);
		}
	}
}